package com.chenqq.camerademo.camera.usbInterface;

import android.hardware.usb.UsbDevice;

public interface OnUsbDeviceReceiver {
    /**
     * called when device attached
     *
     * @param device
     */
    void onAttach(UsbDevice device);

    /**
     * called when device dettach(after onDisconnect)
     *
     * @param device
     */
    void onDettach(UsbDevice device);


    /**
     * 设备授权
     * @param device
     */
    void onPermission(UsbDevice device,boolean isPermission);

    /**
     * Upan接入
     * @param path
     */
    void onMediaMounted(String path);

    /**
     * Upan退出
     * @param path
     */
    void onMediaEJECT(String path);
}
